//获取填写框内容
$fromname=param('fromname'); 
$fromurl=param('fromurl'); 
$byname=param('byname'); 

//echo 'tid:'.$tid. '收藏来源：'.$fromname.'收藏地址：'.$fromurl.'作者：'.$byname;exit;
if($fromname!=='' or $byname!==''){
db_insert('fq_from',array('tid'=>$tid,'fromname'=>$fromname,'fromurl'=>$fromurl,'byname'=>$byname));
}